import { AtInput } from "taro-ui";
import "taro-ui/dist/style/components/input.scss";
import css from "./index.module.less";

export default function Index(props) {
  console.log(props);
  return (
    <>
      <AtInput
        name="value"
        type="text"
        placeholder="搜索"
        className={css.search}
        value={props.searchText}
        onChange={props.search}
      />
    </>
  );
}
